package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 问题业务对象 p_question
 *
 * @author ruoyi
 * @date 2022-07-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("问题业务对象")
public class PQuestionBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 问题
     */
    @ApiModelProperty(value = "问题", required = true)
    @NotBlank(message = "问题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;

    /**
     * 咨询类别id
     */
    @ApiModelProperty(value = "咨询类别id", required = true)
    @NotNull(message = "咨询类别id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     * 发布者
     */
    @ApiModelProperty(value = "发布者", required = true)
    private Long userId;

    /**
     * 审核状态 0 审核中 1 通过 2 未通过
     */
    @ApiModelProperty(value = "审核状态 0 审核中 1 通过 2 未通过", required = true)
    private String checkFlag;

    @ApiModelProperty(value = "是否精选 0 否 1 是")
    private String isWell;

    /**
     * 阅读次数
     */
    @ApiModelProperty(value = "阅读次数", required = true)
    private Long readNum;

    /**
     * 评论次数
     */
    @ApiModelProperty(value = "评论次数", required = true)
    private Long askNum;

    @ApiModelProperty(value = "标签类型")
    private String tagType;

}
